package com.hatic.store;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.jxstar.dao.DaoParam;
import org.jxstar.service.BusinessObject;

/**
 * 取得项目库信息
 * @author kevin
 * 2012.08.05
 */
public class ExpDocBO extends BusinessObject{
	
	private static final long serialVersionUID = 1L;
	
	/**
	 * 获取选择的项目库记录信息供模板输出
	 * @param keyids
	 * @return
	 */
	public List<Map<String,String>> getStoreInfo(String[] keyids){
		String querySql = "select project_store.plan_name,project_store.dept_name,project_store.project_background," +
				"project_store.plan_desc,project_store.project_cause,project_store.project_estimate,project_store.project_result " +
				"from project_store where project_store.planstore_id = ?";
		List<Map<String,String>> list = new ArrayList<Map<String,String>>();
		for(int i=0;i<keyids.length;i++){
			DaoParam qparam = _dao.createParam(querySql);
			qparam.addStringValue(keyids[i]);
			Map<String, String> map = _dao.queryMap(qparam);
			list.add(map);
		}
		
		return list;
		
	}
	
}
